#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

void test1()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 2);
	SLTPushFront(&plist, 1);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);
	SLTPopBack(&plist);
	SLTPopFront(&plist);
	SLTPopFront(&plist);
	SLTPopFront(&plist);
	SLTPrint(plist);
}

void test2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 4);
	SLTPushBack(&plist, 5);
	SLTPushBack(&plist, 6);
	SLTPrint(plist);
	SLTNode* tmp = SLTFind(plist, 4);
	if (tmp)
	{
		SLTInsert(&plist, tmp, 3);
	}
	SLTPrint(plist);
}

int main()
{
	test2();
	return 0;
}